import { EnergyType, UaCard } from "./ua-card.model";

export class UaUserDeckDto {
  id?: number;
  ipId?: number;
  userId?: number;
  userNickName?: string;
  name?: string;
  sn?: string;
  published?: boolean;
  ranked?: boolean;
  description?: string;
  mainEnergyType?: EnergyType;
  cardList?: { id: number; count: number }[];
  cardDtoList?: UaCard[];
  updateDate?: Date;
  tag?: string;
  cover?: string;
}

export class UaSheetCard {
  cardNo?: string;
  cardName?: string;
  count?: number;
}

export class UaUserDeckEntity {
  id?: number;
  sn?: string;
  ipId?: number;
  userId?: number;
  userNickName?: string;
  name?: string;
  published?: boolean;
  ranked?: boolean;
  description?: string;
  updateDate?: Date;
  updateDateStr?: string;
  mainEnergyType?: EnergyType;
  mainEnergyTypeLogo?: string;
  tag?: string;
  cover?: string;
  coverCardList?: string[];
}

export class UaUserDeckSearchDto {
  userId?: number;
  ipId?: number;
  mainEnergyType?: EnergyType;
  published?: boolean;
  ranked?: boolean;
  tag?: string;
}
